﻿using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Media;
using System.Diagnostics;
using System.ComponentModel;
using WPFExcelReport.Helpers;
using System.Windows.Input;
namespace WPFExcelReport
{
    public partial class TWST09
    {
        public TWST09()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VWTSCHUSS();
            this.DataContext = MV;
            InitializeComponent();
        }
        public override void Window_Loaded(object sender, RoutedEventArgs e)
        {
            if (IsLoaded)
                return;
            LOADALL();
            base.Window_Loaded(sender, e);
        }
        public void LOADALL()
        {
            dwData = TBMain.NewRow();
            dwData["WTSMANDANT"] = app.Mandant;
            SResult = TMV.QWTS02(dwData);
            MergeData(SResult, false);
        }
        public override void LOADBYAUF()
        {
            Locate("KEY", ORDERNUM);
            base.LOADBYAUF();
        }

    }
}
